<?php

namespace app\http\middleware;

use think\Request;

class Check
{
    //前置中间件
    public function handle(Request $request, \Closure $next)
    {
        if($request->param('name')=='index'){
            echo "跳转";
        }
        return $next($request);
    }
    //后置中间件
}
